<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<jsp:directive.page import="com.telecom.tree.TreeUtil"/>
<jsp:directive.page import="java.util.List"/>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%
	String userId = ((Integer)session.getAttribute("User_Id")).toString();
%>
<HTML>
<HEAD>
	<TITLE></TITLE>
	<META http-equiv=Content-Type content="text/html; charset=utf-8">
	<LINK href="css/left.css" rel=stylesheet>
	<script type="text/javascript" src="js/dtree.js"></script>
	<STYLE type=text/css>
		BODY {
			SCROLLBAR-FACE-COLOR: #f2f2f2; SCROLLBAR-HIGHLIGHT-COLOR: #f2f2f2; SCROLLBAR-SHADOW-COLOR: #b7b7b7; SCROLLBAR-3DLIGHT-COLOR: #f2f2f2; SCROLLBAR-ARROW-COLOR: #999999; SCROLLBAR-TRACK-COLOR: #e9e9e9; SCROLLBAR-DARKSHADOW-COLOR: #f2f2f2; SCROLLBAR-BASE-COLOR: #f2f2f2
		}
	</STYLE>
</HEAD>
<body style="margin-top: 0px">
	<!-- 模板取数 -->
	<table cellspacing="0" cellpadding="0" width="210" border="0">
	<tbody>
		<tr>
			<td width="3" height="31">
				<img height="31" src="images/table_01.gif" width="3">
			</td>
			<td background="images/table_02.gif" colspan="2" height="31">
				<table cellspacing="0" cellpadding="0" width="146" align="left" border="0">
					<tbody>
						<tr>
							<td width="51" background="images/title_1_bg.gif">
								<img height="31" src="images/title_1.gif" width="51">
							</td>
							<td width="95" background="images/title_1_bg.gif">
								<span class="color_b_666">模板取数</span>
							</td>
						</tr>
					</tbody>
				</table>
			</td>
			<td width="3">
				<img height="31" src="images/table_03.gif" width="3">
			</td>
		</tr>
		<tr>
			<td background="images/table_04.gif">
				<img height="5" src="images/table_04.gif" width="3">
			</td>
			<td style="PADDING-TOP: 3px" valign="top" colspan="2">
				<logic:present name="authTemplate" scope="request">
					<script><%= TreeUtil.createIdaMenuTree((List)request.getAttribute("authTemplate")) %></script>
				</logic:present>
			</td>
			<td background="images/table_05.gif">
				<img height="5" src="images/table_05.gif" width="3">
			</td>
		</tr>
		<tr height="3">
			<td height="3">
				<img height="12" src="images/table_06.gif" width="3">
			</td>
			<td colspan="2" height="3">
				<img height="3" src="images/table_07.gif" width="200">
			</td>
			<td height="3">
				<img height="12" src="images/table_08.gif" width="3">
			</td>
		</tr>
	</tbody>
	</table>
	
	<!-- 我的取数 -->
	<table cellspacing="0" cellpadding="0" width="210" border="0">
	<tbody>
		<tr>
			<td width="3" height="31">
				<img height="31" src="images/table_01.gif" width="3">
			</td>
			<td background="images/table_02.gif" colspan="2" height="31">
				<table cellspacing="0" cellpadding="0" width="146" align="left" border="0">
					<tbody>
						<tr>
							<td width="51" background="images/title_1_bg.gif">
								<img height="31" src="images/title_1.gif" width="51">
							</td>
							<td width="95" background="images/title_1_bg.gif">
								<span class="color_b_666">我的取数</span>
							</td>
						</tr>
					</tbody>
				</table>
			</td>
			<td width="3">
				<img height="31" src="images/table_03.gif" width="3">
			</td>
		</tr>
		<tr>
			<td background="images/table_04.gif">
				<img height="5" src="images/table_04.gif" width="3">
			</td>
			<td style="PADDING-TOP: 3px" valign="top" colspan="2">
				<logic:present name="instanceList" scope="request">
					<script><%= TreeUtil.createIdaInstanceTree((List)request.getAttribute("instanceList"),userId) %></script>
				</logic:present>
			</td>
			<td background="images/table_05.gif">
				<img height="5" src="images/table_05.gif" width="3">
			</td>
		</tr>
		<tr height="3">
			<td height="3">
				<img height="12" src="images/table_06.gif" width="3">
			</td>
			<td colspan="2" height="3">
				<img height="3" src="images/table_07.gif" width="200">
			</td>
			<td height="3">
				<img height="12" src="images/table_08.gif" width="3">
			</td>
		</tr>
	</tbody>
	</table>
	
	<!-- 自定义取数 -->
	<table cellspacing="0" cellpadding="0" width="210" border="0">
	<tbody>
		<tr>
			<td width="3" height="31">
				<img height="31" src="images/table_01.gif" width="3">
			</td>
			<td background="images/table_02.gif" colspan="2" height="31">
				<table cellspacing="0" cellpadding="0" width="146" align="left" border="0">
					<tbody>
						<tr>
							<td width="51" background="images/title_1_bg.gif">
								<img height="31" src="images/title_1.gif" width="51">
							</td>
							<td width="95" background="images/title_1_bg.gif">
								<span class="color_b_666">自定义取数</span>
							</td>
						</tr>
					</tbody>
				</table>
			</td>
			<td width="3">
				<img height="31" src="images/table_03.gif" width="3">
			</td>
		</tr>
		<tr>
			<td background="images/table_04.gif">
				<img height="5" src="images/table_04.gif" width="3">
			</td>
			<td style="PADDING-TOP: 3px" valign="top" colspan="2">
				<table width='100%' border='0' cellspacing='0' cellpadding='0'>
					<tr>
						<td height='30' background='images/Jrcj_Middle_Line.gif'>
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<img src='images/b_dot_2.gif' width='9' height='9'>
							&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
							<a href='idaCustom.do?method=runIdaCustom' target="upFrame">自定义取数</a>
						</td>
					</tr>
					<tr>
						<td height='30' background='images/Jrcj_Middle_Line.gif'>
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<img src='images/b_dot_2.gif' width='9' height='9'>
							&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
							<a href='idaCustom.do?method=runIdaBooking' target="upFrame">预约取数</a>
						</td>
					</tr>
				</table>
			</td>
			<td background="images/table_05.gif">
				<img height="5" src="images/table_05.gif" width="3">
			</td>
		</tr>
		<tr height="3">
			<td height="3">
				<img height="12" src="images/table_06.gif" width="3">
			</td>
			<td colspan="2" height="3">
				<img height="3" src="images/table_07.gif" width="200">
			</td>
			<td height="3">
				<img height="12" src="images/table_08.gif" width="3">
			</td>
		</tr>
	</tbody>
	</table>
	
	<!-- 模板管理 -->
	<table height="157" cellspacing="0" cellpadding="0" width="210" border="0">
	<tbody>
		<tr>
			<td width="3" height="31">
				<img height="31" src="images/table_01.gif" width="3">
			</td>
			<td background="images/table_02.gif" colspan="2" height="31">
				<table cellspacing="0" cellpadding="0" width="146" align="left" border="0">
					<tbody>
						<tr>
							<td width="51" background="images/title_1_bg.gif">
								<img height="31" src="images/title_1.gif" width="51">
							</td>
							<td width="95" background="images/title_1_bg.gif">
								<span class="color_b_666">集成取数管理</span>
							</td>
						</tr>
					</tbody>
				</table>
			</td>
			<td width="3">
				<img height="31" src="images/table_03.gif" width="3">
			</td>
		</tr>
		<tr>
			<td background="images/table_04.gif" height="123">
				<img height="53" src="images/table_04.gif" width="3">
			</td>
			<td style="PADDING-TOP: 3px" valign="top" colspan="2">
				<table width='100%' border='0' cellspacing='0' cellpadding='0'>
					<tr>
						<td height='30' background='images/Jrcj_Middle_Line.gif'>
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<img src='images/b_dot_2.gif' width='9' height='9'>
							&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
							<a href='idaTemplate.do?method=resultTemplate' target="upFrame">结果展现模板</a>
						</td>
					</tr>
					<tr>
						<td height='30' background='images/Jrcj_Middle_Line.gif'>
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<img src='images/b_dot_2.gif' width='9' height='9'>
							&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
							<a href='idaTemplate.do?method=paramTemplate' target="upFrame">条件参数模板</a>
						</td>
					</tr>
					<tr>
						<td height='30' background='images/Jrcj_Middle_Line.gif'>
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<img src='images/b_dot_2.gif' width='9' height='9'>
							&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
							<a href='idaTemplate.do?method=sqlTemplate' target="upFrame">SQL取数模板</a>
						</td>
					</tr>
					<tr>
						<td height='30' background='images/Jrcj_Middle_Line.gif'>
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<img src='images/b_dot_2.gif' width='9' height='9'>
							&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
							<a href='ida/idalog.jsp' target="upFrame">系统日志分析</a>
						</td>
					</tr>
				</table>
			</td>
			<td background="images/table_05.gif">
				<img height="53" src="images/table_05.gif" width="3">
			</td>
		</tr>
		<tr height="3">
			<td height="3">
				<img height="12" src="images/table_06.gif" width="3">
			</td>
			<td colspan="2" height="3">
				<img height="3" src="images/table_07.gif" width="200">
			</td>
			<td height="3">
				<img height="12" src="images/table_08.gif" width="3">
			</td>
		</tr>
	</tbody>
	</table>
</body>
</html>
